package tenant

import (
	"context"
)

type TenantsProfitRepositoryIface interface {
	AddTenantsProfit(ctx context.Context, data *TenantsProfit) (int32, error)
	AddTenantsProfitBatch(ctx context.Context, data []*TenantsProfit) error

	SaveTenantsProfit(ctx context.Context, data *TenantsProfit) error
	GetTenantsProfit(ctx context.Context, tenantCode string) ([]*TenantsProfit, error)

	ExistTenantProfit(ctx context.Context, deliveryNo string, deliveryBatchNo string, deliveryAuthId string) (*TenantsProfit, error)
	GetLatestProfitByCode(ctx context.Context, deliveryNo string, profitCode string, tenantCode string) (*TenantsProfit, error)

	GetTenantClueRadarProfitList(ctx context.Context, tenantCode string) (profitList []*TenantsProfit, err error)
	GetTenantProfitCount(ctx context.Context, tenantCode string) (count int64, err error)
}
